/*
 * Copyright 2008 Federal Emergency Management Agency
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 *    http://www.apache.org/licenses/LICENSE-2.0 
 *    
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and 
 * limitations under the License. 
 *  
 */
package gov.fema.hazus.bdc.server.dto;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class DTO_FloodBasement extends DTO_AbstractPersistentEntity {

	private static final long serialVersionUID = -4707447334542750844L;
	
	@Persistent private Double levels;
	@Persistent private Double percentageContentsValue;
	@Persistent private Double percentageFinished;
	@Persistent private String dryFloodProofed;
	@Persistent private Integer floodProofingElevation;
	@Persistent private String enclosureType;
	
	// constants
	public static final String LEVELS = "levels";
	public static final String PERCENTCONTENTS = "percentage contents value";
	public static final String PERCENTFINISHED = "percentage finished";
	public static final String DRYFLOOD = "dry flood proofed";
	public static final String FLOODPROOFINGELEVATION = "flood proofing elevation";
	public static final String ENCLOSURETYPE = "enclosure type";
	
	public DTO_FloodBasement()
	{
		
	}

	public String getDryFloodProofed() {
		return dryFloodProofed;
	}

	public void setDryFloodProofed(String dryFloodProofed) {
		this.dryFloodProofed = dryFloodProofed;
	}

	public String getEnclosureType() {
		return enclosureType;
	}

	public void setEnclosureType(String enclosureType) {
		this.enclosureType = enclosureType;
	}

	public Integer getFloodProofingElevation() {
		return floodProofingElevation;
	}

	public void setFloodProofingElevation(Integer floodProofingElevation) {
		this.floodProofingElevation = floodProofingElevation;
	}

	

	public Double getLevels() {
		return levels;
	}

	public void setLevels(Double levels) {
		this.levels = levels;
	}

	public Double getPercentageContentsValue() {
		return percentageContentsValue;
	}

	public void setPercentageContentsValue(Double percentageContentsValue) {
		this.percentageContentsValue = percentageContentsValue;
	}

	public Double getPercentageFinished() {
		return percentageFinished;
	}

	public void setPercentageFinished(Double percentageFinished) {
		this.percentageFinished = percentageFinished;
	}

	public String toString()
	{
		String str = "";
		str += "[basement";
		str += "[levels="+this.levels+"]";
		str += "[percentage-contents-value="+this.percentageContentsValue+"]";
		str += "[percentage-finished="+this.percentageFinished+"]";
		str += "[dry-flood-proofed="+this.dryFloodProofed+"]";
		str += "[flood-proofing-elevation="+this.floodProofingElevation+"]";
		str += "[enclosure-type="+this.enclosureType+"]";
		str += "]";
		return str;
	}	
	
}
